package com.ynet.middleground.approve.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 激活或挂起流程定义请求对象
 * @date 2019-11-05 15:46
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "激活或挂起流程定义请求对象", description = "激活或挂起流程定义请求对象，非流程实例")
public class ActivateProcessReq extends BaseReqObj {

    private static final long serialVersionUID = -1703163488966048865L;

    @ApiModelProperty(value = "流程定义ID", notes = "流程定义ID", dataType = "String", required = true)
    @NotBlank(message = "流程定义ID不能为空")
    private String processDefinitionId;

    @ApiModelProperty(value = "挂起激活标志 1:激活、2:挂起", notes = "挂起激活标志", dataType = "int", required = true,
        allowableValues = "1, 2")
    private int type;
}
